<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body{
            perspective: 1000px;
        }

        section {
            width: 180px;
            height: 325px;
            margin: 100px auto;
            position: relative;
            
            transform-style: preserve-3d;
            animation: rotate 4s linear infinite;
        }

        section:hover {
            animation-play-state: paused;
        }

        @keyframes rotate{
            0%{
                transform: rotateY(0);
            }
            100%{
                transform: rotateY(360deg);
            }
        }

        section div {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }

        section div:nth-child(1) {
            transform: translateZ(300px);
            background: url(../images/zhan1.jpg) no-repeat;
        }

        section div:nth-child(2) {
            transform: rotateY(40deg) translateZ(300px) ;
            background: url(../images/zhan2.jpg) no-repeat;
        }
        section div:nth-child(3) {
            transform: rotateY(80deg) translateZ(300px);
            background: url(../images/zhan11.jpg);
        }
        section div:nth-child(4) {
            transform: rotateY(120deg) translateZ(300px);
            background: url(../images/zhan4.jpg);
        }
        section div:nth-child(5) {
            transform: rotateY(160deg) translateZ(300px);
            background: url(../images/zhan12.jpg);
        }
        section div:nth-child(6) {
            transform: rotateY(200deg) translateZ(300px);
            background: url(../images/zhan18.jpg);
        }
        section div:nth-child(7) {
            transform: rotateY(240deg) translateZ(300px);
            background: url(../images/zhan7.jpg);
        }
        section div:nth-child(8) {
            transform: rotateY(280deg) translateZ(300px);
            background: url(../images/zhan18.jpg);
        }
        section div:nth-child(9) {
            transform: rotateY(320deg) translateZ(300px);
            background: url(../images/zhan18.jpg);
        }

       
    </style>
</head>

<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>
</body>

</html>